person = {
    'first_name': 'John',
    'last_name': 'Doe',
    'age': 25,
    'favorite_colors': ['blue', 'green'],
    'active': True
}
ssn = person.get('ssn', '000-00-0000')
print(person['first_name'])
print(person['last_name']) 
# print(person['gender']) # Error
print(person.get('gender')) # None

person['gender'] = 'Female'
person['age'] = 26
del person['active']

for key, value in person.items():
    print(f"{key}: {value}")

for key in person.keys():
    print(key)

for key in person:
    print(key)

for value in person.values():
    print(value)

stocks = {
    'AAPL': 121,
    'AMZN': 3380,
    'MSFT': 219,
    'BIIB': 280,
    'QDEL': 266,
    'LVGO': 144
}

new_stock = {symbol: price * 1.02 for (symbol, price) in stocks.items() if price > 300}
print(new_stock)